<template>
  <div>
    <div class="banner">
      <img src="http://liufusong.top:8080/img/profile/bg.png" alt="" />
    </div>
    <div class="my-info">
      <div class="my-icon">
        <img src="http://liufusong.top:8080/img/profile/avatar.png" alt="" />
      </div>
      <p class="name">游客</p>
      <button class="btn" @click="$router.push('/login')">去登录</button>
    </div>
    <van-grid :column-num="3" :border="false">
      <van-grid-item icon="star-o" text="我的收藏" />
      <van-grid-item icon="wap-home-o" text="我的出租" />
      <van-grid-item icon="clock-o" text="看房记录" />
      <van-grid-item icon="idcard" text="称为房主" />
      <van-grid-item icon="contact" text="个人资料" />
      <van-grid-item icon="service-o" text="联系我们" />
    </van-grid>
    <div class="pic">
      <img src="http://liufusong.top:8080/img/profile/join.png" alt="" />
    </div>
  </div>
</template>

<script>
export default {
  name: 'user-page',
  components: {},
  props: {},
  data() {
    return {}
  },
  computed: {},
  watch: {},
  created() {},
  methods: {}
}
</script>

<style scoped lang="less">
.banner img {
  width: 100vw;
  height: 191px;
}
.my-info {
  position: absolute;
  background: #fff;
  width: 85%;
  height: 165px;
  bottom: 42.5%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px 3px #ddd;
  margin: 50px auto 0;
  padding: 0 20px;
  text-align: center;
  font-size: 13px;
  .my-icon {
    position: relative;
    transform: translateY(-50%);
    border-radius: 50%;
    width: 70px;
    height: 70px;
    border: 5px solid #f5f5f5;
    display: inline-block;
    box-shadow: 0 2px 2px #bdbdbd;
    img {
      width: 100%;
    }
  }
  .name {
    position: relative;
    top: -20px;
  }
  .btn {
    font-size: 13px;
    height: 30px;
    line-height: 30px;
    padding: 0 15px;
    background-color: #21b97a;
    border-radius: 5px;
    color: #fff;
  }
}
.van-grid {
  position: relative;
  top: 120px;
}
.pic {
  width: 100%;
  text-align: center;
  img {
    width: 345px;
    margin-top: 140px;
  }
}
</style>
